<%-- 
    Document   : NNacimiento
    Created on : 12-sep-2013, 15:32:52
    Author     : WALDIR
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.ptr.ptrsystem.dao.Lista" %>
<%@page import="com.ptr.ptrsystem.bean.*"%>
<%@page import="java.util.LinkedList" %>
<%@page import="java.sql.*"%>
<%@page import="com.ptr.controladores.conexionsqlserver"%>
<%@page language="java" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Expires" content="0"/>
        <meta http-equiv="Pragma" content="no-cache"/> 
        <title>::Sistema de Registros Civiles - PTRSystem</title>
        <link rel="stylesheet" type="text/css" href="/RegCivil/css/estilos.css">
        <link rel="stylesheet" type="text/css" href="/RegCivil/css/accesoriosvarios.css">
        <link rel="stylesheet" type="text/css" href="/RegCivil/datepicker/css/cupertino/jquery-ui-1.10.3.custom.min.css"/>
        <script type="text/javascript" src="/RegCivil/datepicker/jquery-1.9.1.js"></script>
        <script type="text/javascript" src="/RegCivil/datepicker/jquery-ui-1.10.3.custom.min.js"></script>
        <script src="/RegCivil/js/jq.js"></script>
        <script src="/RegCivil/js/returnmain.js"></script>
        <script type="text/javascript">
         {
         if(history.forward(1))
         location.replace(history.forward(1))
         }
</script>
<script>
    $(document).ready
    (
        function()
        {
              $('#UbiOreg').click(
                    function ()
                    {
                       var depR=$("#depR").val();var provR=$("#provR").val();
                       var distR=$("#distR").val();var otroR=$("#otroR").val();
                       var ubiOR=depR+provR+distR+otroR;
                       $.get('${pageContext.request.contextPath}/nacimiento',{UBIOR:ubiOR},function(responsetext)
                       {
                           $("#NubigeoOR").text(responsetext);
                       });
                    }
              );
              $('#BDniMat').click(
                function()
                {
                    var txt_DniMat=$("#txt_DNIMat").val();
                    $.get('${pageContext.request.contextPath}/nacimiento',{txt_DniUMat:txt_DniMat},function (responsetext)
                    {
                        $("#DniMadre").text(responsetext);
                    });
                });
                $('#BDniPat').click(
                        function()
                        {
                            var txtDniPat=$("#txtDniPat").val();
                            $.get('${pageContext.request.contextPath}/nacimiento',{txt_DniUPat:txtDniPat},function (responsetext)
                            {
                                $("#DniPadre").text(responsetext);
                            });
                        });
                $('#BDnidec1').click(
                        function()
                        {
                            var txtDd1=$("#txtDd1").val();
                            $.get('${pageContext.request.contextPath}/nacimiento',{txtDdec1:txtDd1},function (responsetext)
                            {
                                $("#Dnideclarante1").text(responsetext);
                            });
                        });
                $('#BDnidec2').click(
                function()
                {
                    var txtDdecla2=$("#txtDd2").val();
                    $.get('${pageContext.request.contextPath}/nacimiento',{txtDdec2:txtDdecla2},function (responsetext)
                    {
                        $("#Dnideclarante2").text(responsetext);
                    });
                });
                $('#BDniReg').click(
                function()
                {
                    var txtDReg=$("#txtDReg").val();
                    $.get('${pageContext.request.contextPath}/nacimiento',{txtDReg:txtDReg},function (responsetext)
                    {
                        $("#DniReg").text(responsetext);
                    });
                });
        }
    );
</script> 
<script>
    $(document).ready(function(){
        // Cuando se modifique el input type=file
        $(".custom-input-file input:file").change(function(){
            if($(this).val())
            {
                // Si tiene valor, se muestra en el class .files
                $(this).parent().find(".files").html($(this).val());
            }else{
                // Si no tiene valor, se muestran los puntos ...
                $(this).parent().find(".files").html("...");
            }
        });
    });
    </script>
    </head>
    <body>
        <form action="${pageContext.request.contextPath}/MantenimientoNacimiento" method="POST" name="" class="contacto">
            <table align="center" border="0" cellspacing="0" cellpadding="0" style="margin-top:0px ">
                <tr><td>                    
                        <fieldset style="alignment-baseline: central;" >
                            <legend style="border: 1px solid #dce0e3;background-color: #edf1f5">
                                REGISTRO DE NACIMIENTO</legend>
                            <table border="0">
                                <tr>
                                    <td>
                                        <fieldset style='background-color: #fffef1;border: solid 1px #ffcb36; width: 55em'>
                                            <legend style="border: solid 1px #ffcb36;background-color: #fffef1"><label/>REGISTRO DE DATOS DEL NACIDO</legend>
                                            <table>
                                                <tr>
                                                    <TD><label/>Cui</td>
                                                    <td><input type="text" name="cui" style="width: 100px;"></td>
                                                    <td><label/>Nro Acta</td>
                                                    <td><input type="text" name="nroacta" style="width: 100px;">
                                                    </td>
                                                    <td><label/>Nro Libro</td>
                                                    <td><input type="text" name="nrolibro" style="width: 100px;">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="8">
                                                        <fieldset style='border: solid 1px #e3b721; width: 53em'><legend style='border: solid 1px #e3b721'><label/>DATOS DE LA PERSONA</legend>
                                                        <table>
                                                            <tr>
                                                                <%  String pa=(String)request.getAttribute("pa");
                                                                    String sa=(String)request.getAttribute("sa");
                                                                    String apca=(String)request.getAttribute("apca");
                                                                    String pnom=(String)request.getAttribute("pnom");
                                                                    String datos=pa+" "+sa+" "+apca+" "+pnom;;
                                                                %>
                                                                <td>
                                                                    <input type="text" name="Dcompletos" value="<%= datos %>" maxlength="200" style="width: 605px;
                                                                    height: 15px;font-size: 13px; font-weight: bold">
                                                                </td>
                                                        </tr>
                                                        </table>
                                                        </fieldset>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="6">
                                                        <fieldset style='border: solid 1px #e3b721;width: 53em'>
                                                            <legend style='border: solid 1px #e3b721'><label/>LUGAR DE NACIMIENTO</legend>
                                                            <table border="0">
                                                                <%
                                                                    String depa1=(String)request.getAttribute("depa1");
                                                                    String prov1=(String)request.getAttribute("prov1");
                                                                    String dist1=(String)request.getAttribute("dist1");
                                                                    String otr1=(String)request.getAttribute("otr1");
                                                                    String nubigeo=depa1+prov1+dist1+otr1;
                                                                    String n1=null;
                                                                try
                                                                {
                                                                    Statement s=null;
                                                                    ResultSet r=null;
                                                                    Connection con=null;
                                                                    conexionsqlserver base=new conexionsqlserver();
                                                                    base.conectar();
                                                                    con=base.getconection();
                                                                    s=con.createStatement();
                                                                    
                                                                    String query="select nom_ubigeo_dep,nom_ubigeo_prov,";
                                                                    query=query+" nom_ubigeo_dist, nom_ubigeo_otro from TB_UBIGEO";
                                                                    query=query+" where idubigeo='"+nubigeo+"'";
                                                                    r=s.executeQuery(query);
                                                                    if(r.next())
                                                                    {
                                                                        n1=r.getString(1)+" / "+r.getString(2)+" / "+r.getString(3)+" / "+r.getString(4);
                                                                    }
                                                                }catch(SQLException ubigeo)
                                                                {
                                                                    System.out.println("Error en la busqueda de ubigeo: "+ ubigeo.getMessage());
                                                                }%>
                                                                <tr>
                                                                    <td><input type="text" name="depN" size="2" value="<%=depa1%>" style="width: 1.2em" maxlength="2"></td>
                                                                    <td><input type="text" name="provN" size="2" value="<%=prov1%>" style="width: 1.2em" maxlength="2"></td>
                                                                    <td><input type="text" name="distN" size="2" value="<%=dist1%>" style="width: 1.2em" maxlength="2"></td>
                                                                    <td><input type="text" name="otroN" size="2" value="<%=otr1%>" style="width: 1.2em" maxlength="2"></td>
                                                                    <td><input type="text" name="lugnaciN" size="8" value="<%=n1%>" style="width: 40.0em" maxlength="8">
                                                                    </td>
                                                                    
                                                                </tr>
                                                            </table>
                                                        </fieldset>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="7">
                                                        <fieldset style='border: solid 1px #e3b721;width: 53em'><legend style='border: solid 1px #e3b721'><label/>DATOS DE REGISTRO</legend>
                                                        <table>
                                                            <tr>
                                                                <td><label/>Genero</td>
                                                                <%String GEN=(String)request.getAttribute("GEN"); 
                                                                %>
                                                                <td><input type="text" name="GEN" value="<%=GEN%>" maxlength="10" style="width: 130px; font-size: 15px; font-weight: bold "></td>
                                                                <td><label/>Hora</td>
                                                                <td><input type="text" name="HNac" maxlength="2" pattern="^\d{2}" style="width: 35px;"></td>
                                                                <td><label/>Minuto</td>
                                                                <td><input type="text" name="MNac" maxlength="2" pattern="^\d{2}" style="width: 35px;"></td>
                                                                <td><label/>Segundo</td>
                                                                <td><input type="text" name="SNac" maxlength="2" pattern="^\d{2}" style="width: 35px;"></td>
                                                            </tr>
                                                            <tr>
                                                                <td><label/>Fecha Nacimiento</td>
                                                                <td><input type="text" name="FNac" maxlength="10" class="tx_fecha" style="width: 130px; font-size: 15px; font-weight: bold "></td>
                                                                <td colspan='8'><input type="text" name="lugnaci" size="8" style="width: 30.0em" maxlength="100"></td>
                                                            </tr>
                                                            <tr>
                                                            <td><label/>Lugar De Ocurrencia</td>
                                                            <td>
                                                                <select name="CLOcu"  style="padding: 7px 6px;
                                                                        width: 144px;
                                                                        border: 1px solid #CED5D7;
                                                                        resize: none;
                                                                        box-shadow:0 0 0 3px #EEF5F7;
                                                                        margin: 5px 0;
                                                                        text-transform: uppercase;
                                                                        font-size: 8pt;
                                                                        font-family : verdana,arial,helvetica;  ">
                                                                    <option selected value="0">Lugar Ocurrencia</option>
                                                                    <% LinkedList<LugarOcurrencia> LugarOc = Lista.getListaLugarOcurr();
                                                                        for (int lo = 0; lo < LugarOc.size(); lo++) {%>
                                                                    <option value="<%=LugarOc.get(lo).getCOD_LUGAR_OCURR()%>"><%=LugarOc.get(lo).getNOM_CEN_LIG_OCU()%> </option>
                                                                    <%}
                                                                    %>
                                                                </select>
                                                            </td>
                                                            <td colspan='8'><input type="text" name="lugnaci" size="8" style="width: 30.0em" maxlength="100"></td>
                                                            </tr>
                                                        </table>
                                                        </fieldset>
                                                    </td>
                                                </tr>                                                
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <fieldset style="width: 55em;align:center"><legend><label/>OFICINA REGISTRAL</legend>
                                            <table border="0">
                                                <tr>
                                                    <td><label/>Fecha Registro</td>
                                                    <td><input type="text" class="tx_fecha" name="FRA" maxlength="10" style="width: 80px; font-size: 15px; font-weight: bold "></td>
                                                    <td><input type="text" name="DEPR" id="depR" size="2" style="width: 1.2em" maxlength="2"></td>
                                                    <td><input type="text" name="PROVR" id="provR" size="2" style="width: 1.2em" maxlength="2"></td>
                                                    <td><input type="text" name="DISTR" id="distR" size="2" style="width: 1.2em" maxlength="2"></td>
                                                    <td><input type="text" name="OTROR" id="otroR" size="2" style="width: 1.2em" maxlength="2"></td>
                                                    <td><button type="button" id="UbiOreg" style="width: 3em; background-color: #eef5f6" alt="Buscar Ubigeo"><img src="/RegCivil/imagenes/buscar.png"></button></td>
                                                    <td><div id="NubigeoOR" style="font-size:1.0em ;width: 23.0em;border: 1px solid #c4e9f8; height: 28px;background-color: #ffffff"></div></td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="6">
                                        <fieldset style="width: 55em;align:center">
                                            <legend><label/>DATOS PADRES</legend>
                                            <table border='0'>
                                                <tr>
                                                    <td><label/>DNI Materno</td>
                                                        <td><select name="CTDocM" style="padding: 7px 6px;
                                                                width: 144px;
                                                                border: 1px solid #CED5D7;
                                                                resize: none;
                                                                box-shadow:0 0 0 3px #EEF5F7;
                                                                margin: 5px 0;
                                                                text-transform: uppercase;
                                                                font-size: 8pt;
                                                                font-family : verdana,arial,helvetica;">
                                                                <option selected value="0">Documento</option>
                                                            <% LinkedList<Tipodocumento> TDoc1 = Lista.getlistatDocumento();
                                                                for (int d1 = 0; d1 < TDoc1.size(); d1++) {%>
                                                            <option value="<%=TDoc1.get(d1).getCOD_T_DOC()%>"><%=TDoc1.get(d1).getNOM_T_DOC()%></option>
                                                            <%}%>
                                                        </select></td>
                                                        <td><input type="text" name="DniM" maxlength="8" id="txt_DNIMat" pattern="^\d{8}" style="width: 90px;"></td>
                                                        <td><button type="button" style="width: 3em; background-color: #eef5f6" id="BDniMat"><img src="/RegCivil/imagenes/buscar.png"></button></td>
                                                        <td><div id="DniMadre" style="font-size:1.0em ;width: 20.0em;border: 1px solid #c4e9f8; height: 28px;background-color: #ffffff"></div>
                                                </tr>
                                                <tr>
                                                    <td><label> Nacionalidad Madre</label></td>
                                                    <td>
                                                        <select name="NacMadre"  style="padding: 7px 6px;
                                                                        width: 144px;
                                                                        border: 1px solid #CED5D7;
                                                                        resize: none;
                                                                        box-shadow:0 0 0 3px #EEF5F7;
                                                                        margin: 5px 0;
                                                                        text-transform: uppercase;
                                                                        font-size: 8pt;
                                                                        font-family : verdana,arial,helvetica;">
                                                            <option selected value="0">Nacionalidad</option>
                                                                    <% LinkedList<Nacionalidad> LugarNac = Lista.getlistaNacionalidad();
                                                                        for (int ln = 0; ln < LugarNac.size(); ln++) {%>
                                                                    <option value="<%=LugarNac.get(ln).getCOD_NACIONALIDAD()%>"><%=LugarNac.get(ln).getNOM_NACIONALIDAD()%> </option>
                                                                    <%}
                                                                    %>
                                                       </select>
                                                    </td>
                                                    <td><label/>Edad<input type="text" name="Edad" maxlength="2" style="width: 63px;"/></td>
                                                    <td colspan="2"><label/>Natural de: <input type="text" name="NMadre" maxlength="200" style="width: 18em;"></td>
                                                </tr>
                                                <tr>
                                                    <td><label/>DNI Paterno</td>
                                                    <td><select name="CTipDocP" style="padding: 7px 6px;
                                                                width: 144px;
                                                                border: 1px solid #CED5D7;
                                                                resize: none;
                                                                box-shadow:0 0 0 3px #EEF5F7;
                                                                margin: 5px 0;
                                                                text-transform: uppercase;
                                                                font-size: 8pt;
                                                                font-family : verdana,arial,helvetica;">
                                                            <option selected value="0">Documento</option>
                                                            <% LinkedList<Tipodocumento> TDoc = Lista.getlistatDocumento();
                                                                for (int d = 0; d < TDoc.size(); d++) {%>
                                                            <option value="<%=TDoc.get(d).getCOD_T_DOC()%>"><%=TDoc.get(d).getNOM_T_DOC()%></option>
                                                            <%
                                                                }
                                                            %>
                                                        </select></td>
                                                    <td><input type="text" name="DniP" maxlength="8" id="txtDniPat" pattern="^\d{8}" style="width: 90px;"></td>
                                                    <td>
                                                        <button type="button" style="width: 3em; background-color: #eef5f6" id="BDniPat"><img src="/RegCivil/imagenes/buscar.png"></button>
                                                    </td> 
                                                    <td><div id="DniPadre" style="font-size:1.0em ;width: 20.0em;border: 1px solid #c4e9f8; height: 28px;background-color: #ffffff"></div>
                                                </tr>
                                                <tr>
                                                    <td><label> Nacionalidad Padre</label></td>
                                                    <td>
                                                        <select name="CNacP"  style="padding: 7px 6px;
                                                                        width: 144px;
                                                                        border: 1px solid #CED5D7;
                                                                        resize: none;
                                                                        box-shadow:0 0 0 3px #EEF5F7;
                                                                        margin: 5px 0;
                                                                        text-transform: uppercase;
                                                                        font-size: 8pt;
                                                                        font-family : verdana,arial,helvetica;">
                                                            <option selected value="0">Nacionalidad</option>
                                                                    <% LinkedList<Nacionalidad> LugarNac1 = Lista.getlistaNacionalidad();
                                                                        for (int ln1 = 0; ln1 < LugarNac1.size(); ln1++) {%>
                                                                    <option value="<%=LugarNac1.get(ln1).getCOD_NACIONALIDAD()%>"><%=LugarNac1.get(ln1).getNOM_NACIONALIDAD()%> </option>
                                                                    <%}
                                                                    %>
                                                       </select>
                                                    </td>
                                                    <td><label/>Edad <input type="text" name="EdadP" maxlength="2" style="width: 63px;"/></td>
                                                    <td colspan="2"><label/>Natural de:<input type="text" name="NaturalP" maxlength="200" style="width: 18em;"/></td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="6">
                                        <fieldset style="width: 55em;align:center">
                                            <legend><label/>DECLARANTES</legend>
                                            <table border="0">
                                                 <tr>
                                                    <td><label/>DNI Declarante 1 </td>
                                                    <td><input type="text" name="DniD1" id="txtDd1" maxlength="8" pattern="^\d{8}" style="width: 80px;" Alt="Ingrese Numero de DNI"/>
                                                        <button type="button" style="width: 3em; background-color: #eef5f6" id="BDnidec1"><img src="/RegCivil/imagenes/buscar.png"></button>
                                                    </td>
                                                    <td colspan="4"><div id="Dnideclarante1" style="font-size:1.0em ;width: 18.0em;border: 1px solid #c4e9f8;height: 28px;background-color: #ffffff"></div>
                                                    <td><label/>Vinculo</td>
                                                        <td colspan='1'><select name="CVin1"  style="padding: 7px 6px;
                                                                width: 150px;
                                                                border: 1px solid #CED5D7;
                                                                resize: none;
                                                                box-shadow:0 0 0 3px #EEF5F7;
                                                                margin: 5px 0;
                                                                text-transform: uppercase;
                                                                font-size: 8pt;
                                                                font-family : verdana,arial,helvetica;">
                                                                <option selected value="0">Vinculo</option>
                                                            <% LinkedList<Vinculo> LVin1 = Lista.getlistausuario();
                                                                for (int v1 = 0; v1 < LVin1.size(); v1++) {%>
                                                            <option value="<%=LVin1.get(v1).getCOD_VINCULO()%>"><%=LVin1.get(v1).getNOM_VINCULO()%></option>
                                                            <% }
                                                            %>

                                                        </select>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><label/>DNI Declarante 2</td>
                                                    <td><input type="text" name="DniD2" id="txtDd2" maxlength="8" pattern="^\d{8}" style="width: 80px;" alt="Ingrese Numero de DNI"/>
                                                        <button type="button" style="width: 3em; background-color: #eef5f6" id="BDnidec2"><img src="/RegCivil/imagenes/buscar.png"></button>
                                                    </td>
                                                    <td colspan="4"><div id="Dnideclarante2" style="font-size:1.0em ;width: 18.0em;border: 1px solid #c4e9f8; height: 28px;background-color: #ffffff"></div>
                                                    <td><label/>Vinculo</td>
                                                    <td colspan='1'>
                                                        <select name="CVin2"  style="padding: 7px 6px;
                                                                width: 150px;
                                                                border: 1px solid #CED5D7;
                                                                resize: none;
                                                                box-shadow:0 0 0 3px #EEF5F7;
                                                                margin: 5px 0;
                                                                text-transform: uppercase;
                                                                font-size: 8pt;
                                                                font-family : verdana,arial,helvetica;">
                                                            <option selected value="0">Vinculo</option>
                                                            <% LinkedList<Vinculo> LVin = Lista.getlistausuario();
                                                                for (int v = 0; v < LVin.size(); v++) {%>
                                                            <option value="<%=LVin.get(v).getCOD_VINCULO()%>"><%=LVin.get(v).getNOM_VINCULO()%></option>
                                                            <% }
                                                            %>

                                                        </select>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>                            
<tr>
                                    <td colspan="6">
                                        <fieldset>
                                            <legend><label/>OTROS DATOS</legend>
                                            <table border="0">                                                
                                                <tr>
                                                    <td><label/>DNI Registrador</td>
                                                    <td><input type="text" name="DniReg"  id="txtDReg" maxlength="8" pattern="^\d{8}" style="width: 80px;">
                                                        <button type="button" style="width: 3em; background-color: #eef5f6" id="BDniReg"><img src="/RegCivil/imagenes/buscar.png"></button>
                                                    </td>
                                                    <td colspan="4"><div id="DniReg" style="font-size:1.0em ;width: 18.0em;border: 1px solid #c4e9f8; height: 28px;background-color: #ffffff"></div>
                                                    <td><label/>Estado Acta</td>
                                                    <td>
                                                        <select name="CEstActa" style="padding: 7px 6px;
                                                                width: 120px;
                                                                border: 1px solid #CED5D7;
                                                                resize: none;
                                                                box-shadow:0 0 0 3px #EEF5F7;
                                                                margin: 5px 0;
                                                                text-transform: uppercase;">
                                                            <% LinkedList<Estado> LEs = Lista.getListaEstado();
                                                                for (int l = 0; l < LEs.size(); l++) {%>
                                                            <option value="<%=LEs.get(l).getCOD_ESTADO()%>"><%=LEs.get(l).getNOM_ESTADO()%></option>
                                                            <%}
                                                            %>
                                                        </select>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><label/>Observaciones</td>
                                                    <td  colspan='5'><input type="text" name="Obs" maxlength="100" style="width: 330px;"></td>
                                                </tr>
                                                <tr>
                                                    <td colspan="4">
                                                        <input type="file" size="1" name="RutN1" style="width:40em"/>
                                                    </td>
                                                </tr>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </td></tr>
                <tr>
                    <td colspan="4">
                        <div align="center">                  
                            <fieldset style="alignment-baseline: central; height: 4em">
                                <legend style="border: 1px solid #dce0e3;background-color: #edf1f5">BOTONES DE MANTENIMIENTO</legend>
                                <table align="center" border="0">
                                    <tr>
                                        <td><button type="submit" name="btn1" value="guardaNaci" class="boton">Siguiente</button></td>
                                        <td><button type="button" name="btn1" value="menu" onclick="main()">Menu Principal</button></td>
                                    </tr>
                                </table>
                            </fieldset>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%String msj = (String) request.getAttribute("msj");
                            if (msj != null) {
                                if (msj == "1") {%>
                        <div>
                            <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #fff5f6;border:1px solid #f57269">
                                <legend style="border-radius: 10px 10px 10px 10px; background-color: #fff5f6;border:1px solid #f57269"><img src="/RegCivil/imagenes/exclamation.png"> </legend>
                                <label>Error en almacenar el registro ingresado</label>
                            </fieldset>
                        </div>
                        <%}
                            if (msj == "0") {%>
                        <div>
                            <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #d0e7ff;border:1px solid #61b0ff">
                                <legend style="border-radius: 10px 10px 10px 10px; background-color: #d0e7ff;border:1px solid #61b0ff"><img src="/RegCivil/imagenes/info.png"> </legend>
                                <label>El Registro se almaceno Correctamente</label>
                            </fieldset>
                        </div>
                        <%}
                        %>
                        <%} else {%>
                        <div>
                            <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #fffbe7;border:1px solid #ffe954">
                                <label style="color:#edd00c; font-size: 1.0em ">Informacion de Almacenamiento</label>
                            </fieldset>
                        </div>
                        <%}%>
                    </td>
                </tr>
            </table>
                        <%String CPERS=(String)request.getAttribute("CPERS");%>
                        <input type="hidden" name="CPERS" value="<%=CPERS%>">      
        </form>
    </body>
</html>
